package com.niiwoo.civet.user.dao.mapper;

import com.niiwoo.civet.user.dao.entity.UserLinkmanInfo;
import com.niiwoo.civet.user.dto.response.customsystem.QueryBorrowerUserResponseDTO;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserLinkmanInfoMapperExt extends UserLinkmanInfoMapper {
    /**
     *
     * @param userId
     * @return
     */
    int deleteByUserId(@Param("userId") String userId);

    /**
     *
     * @param userId
     * @return
     */
    List<UserLinkmanInfo> selectByUserId(@Param("userId") String userId);

    UserLinkmanInfo selectByUserIdAndOrderNo(@Param("userId") String userId,@Param("orderNo") Long orderNo);

    int updateByUserIdSelective(UserLinkmanInfo record);

    /**
     * 通过紧急联系人，查询借款人列表
     * @param mobileNo
     * @return
     */
	List<QueryBorrowerUserResponseDTO> queryBorrowerUserListByLinkManPhoneNum(@Param("mobileNo") String mobileNo);
}